﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using DBAccess;
using Logic;
using WHUT;

public partial class tokenTeam_intro : System.Web.UI.Page
{
    private const int CHANNEL_ID =15;
    private const string TITLE = "团队介绍";
    protected string introduce = string.Empty;


    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) 
        {
            DateBind();
        }
    }

    private void DateBind() 
    {
        //最新消息  //..g有待确定  name 
        DataTable dt = Common.SQLQueryAsDataTable(Common.GetDefaultDBConnection(), "SELECT  TOP 10  [id],[title],[content],[channel_id],[img_home] FROM [t_article] WHERE [channel_id] = " + CHANNEL_ID + " ORDER BY [weight] ASC");
        rptIntroBox.DataSource = dt;
        rptIntroBox.DataBind();

        BindIntr();
    }

    private void BindIntr()
    {
        Introduce into = (new Introduce()).LoadByTags(TITLE);
        introduce = into.Content;
    }
}
